package com.nirvana.admin.constant;

import java.time.Duration;

/**
 * @author zhangshuaiyin
 * @date 2021-09-29 16:05
 */
public class SecurityConstants {
    /**
     * 令牌自定义标识
     */
    public static final String TOKEN_HEADER = "Authorization";
    /**
     * 令牌密钥
     */
    public static final String TOKEN_SECRET = "abcdefghijklmnopqrstuvwxyz";
    /**
     * 令牌有效期（默认60分钟）
     */
    public static final Duration TOKEN_EXPIRE_TIME = Duration.ofDays(1);
    /**
     *
     */
    public static final String AUTHORIZATION_PREFIX = "Bearer ";
}
